package com.example.front.task;

import com.example.front.arrange.AbstractTask;
import com.example.front.arrange.TaskDependent;
import lombok.extern.slf4j.Slf4j;

/**
 * YyyPlugin
 *
 * @author liming2
 * @date 2023/11/6 18:33
 */

@Slf4j
@TaskDependent({AaTask.class, Start1Task.class})
public class DdTask extends AbstractTask<Taxi> {

    @Override
    public Taxi handle() throws Exception {
        Thread.sleep(1000);
        String stringA = this.getDependResult(AaTask.class);
        String start = this.getDependResult(Start1Task.class);
        //log.info("DdTask stringA:{}, start:{}", stringA, start);
        return new Taxi(stringA + "->D");
    }

}
